package com.test.ch06;

public class Counter {
    private static int count;
    public Counter()
    {
        count++;
        System.out.println("创建第"+count+"次");
    }
    public static int getCount()
    {
        return count;
    }
}
